﻿/*--------------------------------------------------------------
 * Author : Shine K Velayudhan 
 ---------------------------------------------------------------*/
using System;
using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting.Messaging;

namespace IQN.Logging
{
    internal class LoggerProperty : IContextProperty,IContributeServerContextSink
    {
        public IMessageSink GetServerContextSink(IMessageSink nextSink)
        {
            return new LoggerServerSink(nextSink);
        }
        public void Freeze(Context newContext)
        {
        }
        public bool IsNewContextOK(Context newCtx)
        {
            return true;
        }
        public string Name
        {
            get { return "LoggerProperty"; }
        }
    }
}
